<!DOCTYPE html>
<html lang="en">
    <head>
        {include file="public/header" /}
    </head>
    <body>
        {include file="public/nav" /}
        <div class="container">
            <div>
                <!-- Nav tabs -->
                <ul class="nav nav-tabs" role="tablist">
                    <li role="presentation" class="active"><a href="#study" aria-controls="study" role="tab" data-toggle="tab">学习</a></li>
                    <li role="presentation"><a href="#comment" aria-controls="comment" role="tab" data-toggle="tab">留言</a></li>
                    <li role="presentation"><a href="#exam" aria-controls="exam" role="tab" data-toggle="tab">练习</a></li>
                    <li role="presentation"><a href="#paper" aria-controls="paper" role="tab" data-toggle="tab">试卷</a></li>
                    <li role="presentation"><a href="#ask" aria-controls="ask" role="tab" data-toggle="tab">提问</a></li>
                </ul>

                <!-- Tab panes -->
                <div class="tab-content">
                    <div role="tabpanel" class="tab-pane active" id="study"></div>
                    <div role="tabpanel" class="tab-pane" id="comment"></div>
                    <div role="tabpanel" class="tab-pane" id="exam"></div>
                    <div role="tabpanel" class="tab-pane" id="paper"></div>
                    <div role="tabpanel" class="tab-pane" id="ask">
                        <div class="row">
                            <div class="col-lg-6">
                                <form class="form">
                                    <div class="form-grounp">
                                        <textarea class="form-control"></textarea>
                                    </div>
                                    <div class="btn btn-primary">提交</div>
                                    
                                </form>
                            </div>
                        </div>
                    </div>
                </div>

            </div>
        </div>
        {include file="public/js" /}
        <script type="text/javascript">
         (function(){
             $.ajax({
                 url : "/index.php/home/student/curriculum.html?state=0",
                 type : "post",
                 dataType : "html",
                 success : function(res){
                     $("#study").html(res);
                 },
                 error : function(res){
                     return;
                 }
             });
             $.ajax({
                 url : "/index.php/home/student/curriculum.html?state=1",
                 type : "post",
                 dataType : "html",
                 success : function(res){
                     $("#studed").html(res);
                 },
                 error : function(res){
                     return;
                 }
             });
             $.ajax({
                 url : "/index.php/home/student/comment.html",
                 type : "post",
                 dataType : "html",
                 success : function(res){
                     $("#comment").html(res);
                 },
                 error : function(res){
                     return;
                 }
             });
             $.ajax({
                 url : "/index.php/home/student/paper.html",
                 type : "post",
                 dataType : "html",
                 success : function(res){
                     $("#paper").html(res);
                 },
                 error : function(res){
                     return;
                 }
             });
             $.ajax({
                 url : "/index.php/home/student/examed.html",
                 type : "post",
                 dataType : "html",
                 success : function(res){
                     $("#exam").html(res);
                 },
                 error : function(res){
                     return;
                 }
             });                
         })();
         
        </script>
    </body>
</html>
